rod for one's back

(a) rod for one's back
(idiomatic) The means of one's own punishment or downfall.